<?php

	/**
	 * File : list_view_line.php
	 * Description : Définition et fonctions d'une ligne du composant list_view
	 * Date : 07.08.2012 15:10:15
	 * 
	 * This file is part of Phenix.  Phenix is free software: you can
	 * redistribute it and/or modify it under the terms of the GNU General Public
	 * License as published by the Free Software Foundation, version 2.
	 *
	 * This program is distributed in the hope that it will be useful, but WITHOUT
	 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
	 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
	 * details.
	 *
	 * You should have received a copy of the GNU General Public License along with
	 * this program; if not, write to the Free Software Foundation, Inc., 51
	 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
	 *
	 * Nils Schaetti <n.schaetti@gmail.com>
	**/

	/*
	 * Classe représentant une ligne
	 */
	class ktkListViewLine
	{
	
		/******************
		 * Propriétés
		 ******************/
		 
		/*
		 * Contenu
		 */
		private $Content = array();
		
		/*
		 * Lien
		 */
		private $Links = array();
		
		/******************
		 * Fonctions
		 ******************/
	
		/*
		 * Constructeur
		 */
		public function ktkListViewLine()
		{
		}
		
		/*
		 * Ajoute un contenu
		 */
		public function addContent($name,$link)
		{
			$this->Content[] = $name;
			$this->Links[] = $link;
		}
		
		/*
		 * Retourne un contenu selon sa position
		 */
		public function getContent($position)
		{
			return $this->Content[$position];
		}
		
		/*
		 * Retourne le lien selon sa position
		 */
		public function getLink($position)
		{
			return $this->Links[$position];
		}
	
	}	

?>

